/*
 * @Description:
 * @Author: shilinzhou
 * @Date: 2024-02-02 10:18:45
 * @LastEditors: shilinzhou
 * @LastEditTime: 2024-03-20 10:17:06
 */
import { InputType } from '@/utils';

export const searchConfig: PageConfig = {
    items: [
        {
            itemType: 'text',
            modelKey: 'itemNumber',
            elInputProps: {
                placeholder: '请输入物料编码'
            },
            columnProps: {
                label: '物料编码'
            },
            validFormatType: InputType.NUMERIC_ALPHABET_SYMBOLS
        },
        {
            itemType: 'text',
            modelKey: 'itemName',
            elInputProps: {
                placeholder: '请输入物料名称'
            },
            columnProps: {
                label: '物料名称'
            }
        },
        {
            itemType: 'text',
            modelKey: 'orderNumber',
            elInputProps: {
                placeholder: '请输入订单号'
            },
            columnProps: {
                label: '订单号'
            },
            validFormatType: InputType.NUMERIC_ALPHABET_SYMBOLS
        },
        {
            itemType: 'date',
            modelKey: 'orderDeliveryTime',
            dateRange: true,
            elDatePickerProps: {
                type: 'daterange',
                startPlaceholder: '开始时间',
                rangeSeparator: '-',
                endPlaceholder: '结束时间'
            },
            columnProps: {
                label: '订单交期'
            }
        },
        {
            itemType: 'date',
            modelKey: 'plannedStartTime',
            elDatePickerProps: {
                placeholder: '请选择计划开始日期'
            },
            columnProps: {
                label: '计划开始'
            }
        },
        {
            itemType: 'date',
            modelKey: 'plannedEndTime',
            elDatePickerProps: {
                placeholder: '请选择计划结束日期'
            },
            columnProps: {
                label: '计划结束'
            }
        }
    ]
};
